﻿<%@ page language="C#" autoeventwireup="true" inherits="admin_CalTypeAdd, App_Web_caltypeadd.aspx.fdf7a39c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/main-admin.css" rel="stylesheet" type="text/css" />

    <script src="../Jscript/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../Jscript/page.js" type="text/javascript"></script>

    <script src="../Jscript/jquery.myvalidate.js" type="text/javascript"></script>

    <script src="../Jscript/jquery.ysbcheck.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function() {


            $("#okbtn").Ck();
            $("#nametxt").YsbValid({ notnull: true });


            $("#Firsttxt").YsbValid({ type: "number", notnull: true });

            $("#Lasttxt").YsbValid({ type: "number", notnull: true });
            $("#okbtn").click(function() {

                if ($.Check()) {

                    OpenWindow("数据录入中...请稍后..");
                    $.post("CalTypeAdd.ashx", { name: $("#nametxt").val(), fisrt: $("#Firsttxt").val(), last: $("#Lasttxt").val(), about: $("#about").val() }, function(data) {



                        OpenWindow(data);
                        window.href = "CalType.aspx";

                    });

                    return;
                }
            });
        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="title">
        计费类别管理</div>
    <div style="color: #636; margin-bottom: 15px;">
        计费类别
        <input type="text" name="textfield" id="nametxt" runat="server" style="width: 200px;
            border: 1px solid #CCC; height: 15px; margin-left: 20px;" />
    </div>
    <div style="color: #636; margin-bottom: 15px;">
        运输费率：首磅 $
        <input name="GeneralRatesFirsttxt" type="text" id="Firsttxt" runat="server" style="width: 50px;
            border: 1px solid #CCC; height: 15px;" value="" />
        &nbsp; &nbsp; &nbsp; 次磅 $
        <input name="GeneralRatesLasttxt" type="text" id="Lasttxt" runat="server" style="width: 50px;
            border: 1px solid #CCC; height: 15px;" value="" />
    </div>
    <div style="color: #636; margin-bottom: 15px;">
        描述
        <input type="text" name="textfield" id="about" runat="server" style="width: 200px;
            border: 1px solid #CCC; height: 15px; margin-left: 43px;" />
    </div>
    <div style="color: #606; font-weight: bold; float: left; width: 966px; margin-top: 20px;
        text-align: center;">
        <img src="../images/btn-save.gif" width="136" height="40" id="okbtn" />
    </div>
    </form>
</body>
</html>
